{extend name='admin@public/content'}

{block name="style"}
<style>
    .keys-container{min-width:800px}
    .keys-container textarea{width:95%;height:100px;border-radius:0}
    .keys-container .input-group input{border-right:0}
    .keys-container .input-group-addon{border-left:0;border-radius:0}
    .keys-container [data-tips-image]{width:112px;height:auto;}
    .keys-container .layui-elem-field{width:100%;height:1300px;position:absolute}
</style>
{/block}

{block name="content"}
<!-- 效果预览区域 结束 -->

<div class="row keys-container">
    <div class='col-xs-6 margin-left-15'>
        <form class="form-horizontal layui-form" role="form" data-auto="true" action="admin/adminorder/postedit" method="post">
            <fieldset class="layui-elem-field layui-box">
                <legend>{$title}--<a class="layui-btn layui-btn-xs" id="copy"  onclick="copy()" data-sn="{$info.sn}">{$info.sn}</a></legend>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">用户账户</label>
                    <div class="col-xs-8">
                        <input  title='暂无微信昵称' maxlength='20'  class="layui-input" value='{$info.nickname|default=""}' readonly="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">手 机 号</label>
                    <div class="col-xs-8">
                        <input type="type"  title='请输入新密码' maxlength='20' class="layui-input" value='{$info.mobile|default=""}' readonly="true">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">订单金额</label>
                    <div class="col-xs-8">
                        <input type="type"  title='请输入支付密码' maxlength='20' class="layui-input" value='{$info.real_price|default=""}'readonly="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">服 务 费</label>
                    <div class="col-xs-8">
                        <input  title='服 务 费' maxlength='20'  class="layui-input" value='{$info.service_price|default=""}' readonly="true">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">税  金</label>
                    <div class="col-xs-8">
                        <input  title='税  金' maxlength='20' class="layui-input" value='{$info.tax_price|default=""}' readonly="true">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">订单实际付款</label>
                    <div class="col-xs-8">
                        <input title='请输入上级' maxlength='20' class="layui-input" value='{$info.total_price|default=""}' readonly="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label label-required">付款状态</label>
                    <div class="col-xs-8">
                        <div class="mt-radio-inline padding-bottom-0">
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['status'] == 1){?>checked<?php }?> value="1"> 已支付                                <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['status'] == 0){?>checked<?php }?> value="0"> 待支付                                <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio"<?php if($info['status'] == 2){?>checked<?php }?> value="2"> 失败订单                               <!---->
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label label-required">付款方式</label>
                    <div class="col-xs-8">
                        <div class="mt-radio-inline padding-bottom-0">
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['type'] == 1){?>checked<?php }?> value="1"> 余额                                <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio" <?php if($info['type'] == 2){?>checked<?php }?> value="2"> 现金支付                                <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio"<?php if($info['type'] == 3){?>checked<?php }?> value="3"> 支付宝                               <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio"<?php if($info['type'] == 4){?>checked<?php }?> value="4"> 微信                               <!---->
                            </label>
                            <label class="think-radio">
                                <input data-auto-none="" type="radio"<?php if($info['type'] == 5){?>checked<?php }?> value="5"> 银行卡                               <!---->
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">付款商户：</label>
                    <div class="col-xs-8">
                        <input  title='暂无推荐人' maxlength='20' class="layui-input" value='{$info.shopNmae|default="暂无"}' readonly="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label layui-form-label ">备注：</label>
                    <div class="col-xs-8">
                        <textarea name="remarks">{$info.remarks|default="暂无"}</textarea>
                    </div>
                </div>
                <div class="text-center padding-bottom-10" style="position:absolute;bottom:0;width:100%;height: 600px">
                    <div class="hr-line-dashed" style="margin:10px 0"></div>
                    <button style="" class="layui-btn menu-submit">保存数据</button>
                    <!--{if !isset($vo.keys) || !in_array($vo.keys,['default','subscribe'])}-->
                    <button data-cancel-edit class="layui-btn layui-btn-danger" type='button'>取消编辑</button>
                    <!--{/if}-->
                </div>
                {if isset($info['id'])}<input type='hidden' value='{$info.id}' name='id'>{/if}

            </fieldset>
        </form>
    </div>
</div>
{/block}

{block name="script"}
<script>
    $(function (){
        var $body = $('body');
        /*! 取消编辑 */
        $('[data-cancel-edit]').on('click', function (){
            var dialogIndex = $.msg.confirm('确定取消编辑吗？', function (){
                history.back();
                $.msg.close(dialogIndex);
            });
        });
        // 默认事件触发
        $('input[name=type]:checked').map(function (){
            $(this).trigger('click');
        });

    });
    //复制


</script>
{/block}